TEMP x
This field is a temporary UNICODE work area that can be used by any statement series. Substring manipulation of this field is provided through the use of the SET TEMP statement. This field can also be used in CANCEL, ERROR, MESSAGE, and WARNING statements to provide variable messages. TEMP x Temp fields variy from 1 to 1M in size (x). Temp fields temporarily store UNICODE characters. Valid TEMP x sizes are; Valid TEMP x sizes are; 1,2,3,4,5,6,7,8,9,10,11,12,16,20,22,24,30,32,40,50,60,64,79,80,128,32,256,512,1k,2k, 4k, 4kc, 4kl, 4kl0, 4kr, 4kr0, 8k, 32k, 1m, 1mc, 1ml0, 1mr and 1mr0. TEMP 132 for example. Left/Right/Center justification with and without zero fill variations can be specified on all --- TEMP fields. The suffix designates the type of justification: L - Left Justified R- Right Justified L0 - Left Justified, zero fill R0 - Right Justified, zero fill C - Centered. For example: --- TEMP 128 - no justification, no fill (same as always) --- TEMP 128L - left justification, no fill --- TEMP 128L0 - left justification, zero fill --- TEMP 128R - right justification, no fill --- TEMP 128R0 - right justification, zero fill --- TEMP 128C - center justification, no fill Note that when using SET TEMP with the justified/filled versions that APPX does not apply any justification or fill. The character(s) will be inserted into the location you specified, regardless of the justification/fill of the target field. For example, using SET TEMP to put an 'X' in the 7th position in TEMP 30C (center justification) will not centre the "X", it will remain in the 7th position. Only a SET statement applies fill/justification. |